
<html lang="en">
<head>
    <meta charset="utf-8">

    <title><?php echo $title; ?></title>

    <link rel="stylesheet" href="<?php echo base_url()."template/style_admin.css"?>">

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
    <script src="http://localhost/ci/template/js/jquery-1.10.2.js"></script>
    <script>
        $(document).ready(function(){

            $(document).on("click",".hdel",function(){
                i = $(this).attr("name");
                if($(".hcheck"+i).is(":checked")){
                    window.location = "<?php echo base_url(); ?>default.php/admin/brand/deleteProduct/"+i;
                }else{
                    window.location = "<?php echo base_url(); ?>default.php/admin/brand/deleteBrand/"+i;
                }
            })

        });
    </script>

</head>
<body>

<div class="wrapper">
    <div class="header">
        <div class="menu">
        </div>
        <div class="logo">
            <img src="http://localhost/ci/images/logo.gif" alt="logo"/>
        </div>
    </div>

    <ul class="menu" style="float: left">
        <li class="item1"><a href="#" class="">Quản Lý Thành Viên </a>
            <ul style="display: none;">
                <li class="subitem1"><a href="<?php echo base_url()."admin/user"; ?>">Xem Danh Sách<span></span></a></li>
                <li class="subitem2"><a href="<?php echo base_url()."admin/user/addUser";?>">Thêm Thành Viên<span></span></a></li>

            </ul>
        </li>
        <li class="item2"><a href="#" class="">Quản Lý Thương hiệu <span></span></a>
            <ul style="display: none;">
                <li class="subitem1"><a href="<?php echo base_url()."admin/brand"; ?>">Xem Danh Sách <span>14</span></a></li>
                <li class="subitem2"><a href="<?php echo base_url()."admin/addBrand"; ?>">Thêm Thương Hiệu<span>6</span></a></li>

            </ul>
        </li>
        <li class="item3"><a href="#">Quản Lý Danh Mục<span></span></a>
            <ul style="display: none;">
                <li class="subitem1"><a href="<?php echo base_url()."admin/category"; ?>">Xem Danh Sách<span></span></a></li>
                <li class="subitem2"><a href="<?php echo base_url()."admin/addCate"; ?>">Thêm Danh Sách Mới<span></span></a></li>
            </ul>
        </li>
        <li class="item4"><a href="#">Quản Lý Sản Phẩm <span></span></a>
            <ul style="display: none;">
                <li class="subitem1"><a href="<?php echo base_url()."admin/pagination"; ?>">Danh Mục Sản Phẩm <span>14</span></a></li>
                <li class="subitem2"><a href="<?php echo base_url()."admin/product/addProduct"; ?>">Thêm Sản Phẩm Mới<span>6</span></a></li>
            </ul>
        </li>
        <li class="item4"><a href="#">Quản Lý Order <span></span></a>
            <ul style="display: none;">
                <li class="subitem1"><a href="<?php echo base_url()."admin/order"; ?>">Order mới<span></span></a></li>
                <li class="subitem2"><a href="<?php echo base_url()."admin/product/addProduct"; ?>">Danh sách Order<span></span></a></li>
            </ul>
        </li>

    </ul>

    <div class="right">
       <?php $this->load->view($path); ?>
    </div>
    </div>
    <div class="footer">
    </div>

</div>

<!--initiate accordion-->
<script type="text/javascript">
    $(function() {

        var menu_ul = $('.menu > li > ul'),
            menu_a  = $('.menu > li > a');

        menu_ul.hide();

        menu_a.click(function(e) {
            e.preventDefault();
            if(!$(this).hasClass('active')) {
                menu_a.removeClass('active');
                menu_ul.filter(':visible').slideUp('normal');
                $(this).addClass('active').next().stop(true,true).slideDown('normal');
            } else {
                $(this).removeClass('active');
                $(this).next().stop(true,true).slideUp('normal');
            }
        });

    });
</script>


</body></html>


